﻿using System.Data.Entity;
using MusicStore.Domain.POCO;
using System.Data.Entity.ModelConfiguration.Conventions;


namespace MusicStore.Domain.Concrete
{
  public class EFDbContext: DbContext
  {
    public DbSet<Album> Albums { get; set; }
    public DbSet<Genre> Genres { get; set; }

    protected override void OnModelCreating(DbModelBuilder modelBuilder)
    {
      modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
    }

    public DbSet<Artist> Artists { get; set; }
  }
}
